package com.wang.luntan.users.service;

import com.wang.luntan.common.pojo.ApiResponse;
import com.wang.luntan.common.util.PageInfoUtil;
import com.wang.luntan.users.pojo.AtOpinionDesc;
import com.wang.luntan.users.pojo.AtOpinionType;

import java.util.Map;

/**
* @author wjq
* @description 针对表【at_opinion_type(意见类型表)】的数据库操作Service
* @createDate 2024-02-27 22:44:21
*/
public interface IOpinionDbService {
    /* == 意见类型操作开始 == */
    ApiResponse<Object> saveOneOpinionTypeService(AtOpinionType obj);

    /**
     * 更新一条意见类型
     *
     * @param obj
     * @return
     */
    ApiResponse<Object> updateOneOpinionTypeService(AtOpinionType obj);

    /**
     * 删除一条意见类型
     *
     * @param condMap
     * @return
     */
    ApiResponse<Object> deleteOneOpinionTypeService(Map<String, Object> condMap);

    /**
     * 查询一条意见类型
     *
     * @param condMap
     * @return
     */
    ApiResponse<AtOpinionType> findOneOpinionTypeService(Map<String, Object> condMap);

    /**
     * 查询多条意见类型
     *
     * @param condMap
     * @return
     */
    ApiResponse<AtOpinionType> findCondListOpinionTypeService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
    /* == 意见类型操作结束 == */

    /* == 意见操作开始 == */

    ApiResponse<Object> saveOneOpinionDescService(AtOpinionDesc obj);

    /**
     * 更新一条意见
     *
     * @param obj
     * @return
     */
    ApiResponse<Object> updateOneOpinionDescService(AtOpinionDesc obj);


    /**
     * 删除一条意见
     *
     * @param condMap
     * @return
     */
    ApiResponse<Object> deleteOneOpinionDescService(Map<String, Object> condMap);

    /**
     * 查询一条意见
     *
     * @param condMap
     * @return
     */
    ApiResponse<AtOpinionDesc> findOneOpinionDescService(Map<String, Object> condMap);

    /**
     * 查询多条意见
     *
     * @param condMap
     * @return
     */
    ApiResponse<AtOpinionDesc> findCondListOpinionDescService(PageInfoUtil pageInfoUtil, Map<String, Object> condMap);
    /* == 意见操作结束 == */
}
